####装饰器-多个参数

def my_decorator(func):
    #参数长度不确定
    def wrapper(*args, **kwargs):
        print("这是装饰后具有的新输出")
        func(*args, **kwargs)
    return wrapper

@my_decorator
def hello(people_name):
    print("你好，{}".format(people_name))

@my_decorator
def hello3(speaker, listener):
    print("{}对{}说你好！".format(speaker, listener))

if __name__ == '__main__':
    hello("老王")
    print("------------------------")
    hello3("张三", "李四")